import {request} from "../request"

/**
 * 获取设置
 */
export const getSetting = () => request.get("/api/settings")

/**
 * 发送验证码
 */
export const sendTextCode = (params: object) => request.get('text_code', {params})

/**
 * 获取封面图
 */
export const getCover = () => request.get('/api/cover')

/**
 * 活动列表
 */
export const getActivityList = (params: object) => request.get('/api/activity', {params})

/**
 * 获取活动详情
 */
export const getActivityDetail = (id: string) => request.get(`/api/activity/${id}`)

/**
 * 提交评价
 */
export const submitComment = (params: object) => request.post('/api/rating', params)